<?php
namespace Api\Controller;
use Think\Controller;
class VideosController extends Controller {
    public function getVideos(){

        // $m_id = $_GET['m_id'];

        $video = M('video');
        $data = $video -> order("video_id")->select();

        echo json_encode($data);
         echo "<br>";

    }

    public function Videosdetail(){
      $video_id=$_GET['video_id'];
      $videomodel=M('video');
      $video=$videomodel->find($video_id); 
      $this->video=$video;
      exit(json_encode($video));
    } 




}
